import ajax from '@/utils/ajax';
import request from '@/utils/request'
export default {
    // 修改账户
    updCompany(data) {
        return ajax({
            url: '/company/updCompany',
            method: 'post',
            data
        })
    },
    // 账户详情
    getCompanyDetail(data) {
        return ajax({
            url: '/company/getCompanyDetail',
            method: 'get',
            data
        })
    },
    // 删除账户
    delCompany(data) {
        return ajax({
            url: '/company/delCompany',
            method: 'post',
            data
        })
    },
    // 添加账户
    addCompany(data) {
        return ajax({
            url: '/company/addCompany',
            method: 'post',
            data
        })
    },
    // 账户列表
    getCompanyList(data) {
        return ajax({
            url: '/company/getCompanyList',
            method: 'get',
            data
        })
    },
    // 收款单审核拒绝
    receiptReviewRejected(data) {
        return ajax({
            url: '/company/receiptReviewRejected',
            method: 'post',
            data
        })
    },
    // 收款单审核通过
    receiptReviewPassed(data) {
        return ajax({
            url: '/company/receiptReviewPassed',
            method: 'post',
            data
        })
    },
    // 添加收款单
    addReceipt(data) {
        return ajax({
            url: '/company/addReceipt',
            method: 'post',
            data
        })
    },
    // 修改收款单
    updReceipt(data) {
        return ajax({
            url: '/company/updReceipt',
            method: 'post',
            data
        })
    },
    // 获取收款单列表
    getReceiptList(data) {
        return ajax({
            url: '/company/getReceiptList',
            method: 'get',
            data
        })
    },
    // 获取收款单详情
    getReceiptDetails(data) {
        return ajax({
            url: '/company/getReceiptDetails',
            method: 'get',
            data
        })
    },
    // 导出收款单
    exportReceiptExcel(data) {
        return ajax({
            url: '/company/exportReceiptExcel',
            method: 'get',
            data
        })
    },
    // 尾款客户总监审核
    preliminaryExamination(data) {
        return ajax({
            url: '/company/preliminaryExamination',
            method: 'post',
            data
        })
    },
    // 尾款总经理审核
    reexamineExamination(data) {
        return ajax({
            url: '/company/reexamineExamination',
            method: 'post',
            data
        })
    },
}